package com.yycx.module.bus.client.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.yycx.common.mybatis.base.entity.AbstractEntity;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 日常开销费用
 *
 * @author flyme
 * @date 2020-11-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_consumption")
@TableAlias("consumption")
@ApiModel(value = "BusConsumption对象", description = "日常开销费用")
public class BusConsumption extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "consumptionId", type = IdType.ASSIGN_ID)
    private Long consumptionId;

    @ApiModelProperty(value = "流程实例Id")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String processInstanceId;

    @ApiModelProperty(value = "部门Id")
    private Long deptId;

    private Long organizationId;
    private Long companyId;

    @ApiModelProperty(value = "单号")
    private String consumptionNo;

    @ApiModelProperty(value = "审批状态")
    private Integer checkState;

    @ApiModelProperty(value = "收款单位")
    private String receivingUnit;

    @ApiModelProperty(value = "申请金额")
    private BigDecimal applyAmount;

    @ApiModelProperty(value = "款项类型")
    private Long paymentTypeId;

    @ApiModelProperty(value = "开户行")
    private String bank;

    @ApiModelProperty(value = "银行账户")
    private String bankNo;

    @ApiModelProperty(value = "支付账户Id")
    private Long payBankId;

    @ApiModelProperty(value = "附件")
    private String attachmentImage;

    @ApiModelProperty(value = "申请人")
    private Long applyUserId;

    @ApiModelProperty(value = "支付人")
    private Long payUserId;

    @ApiModelProperty(value = "支付日期")
    private Date payDate;

    @ApiModelProperty(value = "备注")
    private String remark;

}
